Remove the first item from a specified listΒΆ
Remove the first item from a specified list.
color = ["Red", "Black", "Green", "White", "Orange"]
print("Original Color: ", color)
del color[0]
print("After removing the first color: ", color)
Output:
Original Color: ['Red', 'Black', 'Green', 'White', 'Orange']
After removing the first color: ['Black', 'Green', 'White', 'Orange']